package com.mg.axechen.viewmodel

import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel

class MyViewModel : ViewModel() {

    var liveData = MutableLiveData<String>()

    var comonText:String = "我这个是共享数据哦！"

    fun getStringData() {
        liveData.postValue("ViewMode的示例代码！！")
    }
}